﻿<AzukiMapUI:TileSourceProperties
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:AzukiMapUI="clr-namespace:AzukiMapUI"
	mc:Ignorable="d"
	x:Class="AzukiMapUI.KaMapProperties"
	Width="600" Height="480">

    <Grid x:Name="LayoutRoot" Background="#FFFFFFFF">
        <Grid.RowDefinitions>
            <RowDefinition Height="52"/>
            <RowDefinition Height="104"/>
            <RowDefinition Height="26"/>
            <RowDefinition Height="26"/>
            <RowDefinition Height="26"/>
            <RowDefinition Height="26"/>
            <RowDefinition Height="26"/>
            <RowDefinition Height="26"/>
            <RowDefinition Height="26"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="150"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>

        <!-- labels -->
        <TextBlock Margin="8,8,0,0" TextWrapping="Wrap" Text="Tile Server Paths"/>
        <TextBlock Margin="8,8,8,0" Text="Scales" TextWrapping="Wrap" Grid.Row="1"/>
        <TextBlock Margin="8,8,8,0" Text="Map Name" TextWrapping="Wrap" Grid.Row="2"/>
        <TextBlock Margin="8,8,8,0" Text="Tile Width" TextWrapping="Wrap" Grid.Row="3"/>
        <TextBlock Margin="8,8,8,0" Text="Tile Height" TextWrapping="Wrap" Grid.Row="4"/>
        <TextBlock Margin="8,8,8,0" Text="Tile DPI" TextWrapping="Wrap" Grid.Row="5"/>
        <TextBlock Margin="8,8,8,0" Text="Layers" TextWrapping="Wrap" Grid.Row="6"/>
        <TextBlock Margin="8,8,8,0" Text="Groups" TextWrapping="Wrap" Grid.Row="7"/>
        <TextBlock Margin="8,8,8,0" Text="SRID" TextWrapping="Wrap" Grid.Row="8"/>

        <!-- input fields -->
        <TextBox Margin="8,2,8,2" x:Name="TbServerPaths" LostFocus="TbServerPaths_LostFocus" TextWrapping="Wrap" Grid.Column="1" VerticalScrollBarVisibility="Auto" AcceptsReturn="True"/>
        <TextBox Margin="8,2,8,2" x:Name="TbScales" LostFocus="TbScales_LostFocus" TextWrapping="Wrap" Grid.Column="2" Grid.Row="1" AcceptsReturn="True" VerticalScrollBarVisibility="Auto"/>
        <TextBox Margin="8,2,8,2" x:Name="TbMapName" LostFocus="TbMapName_LostFocus" TextWrapping="Wrap" Grid.Column="2" Grid.Row="2" AcceptsReturn="True" />
        <TextBox Margin="8,2,8,2" x:Name="TbTileWidth" LostFocus="TbTileWidth_LostFocus" TextWrapping="Wrap" Grid.Column="2" Grid.Row="3" HorizontalAlignment="Left" Width="48"/>
        <TextBox Margin="8,2,8,2" x:Name="TbTileHeight" LostFocus="TbTileHeight_LostFocus" TextWrapping="Wrap" Grid.Column="2" Grid.Row="4" HorizontalAlignment="Left" Width="48"/>
        <TextBox Margin="8,2,8,2" x:Name="TbTileDpi" LostFocus="TbTileDpi_LostFocus" TextWrapping="Wrap" Grid.Column="2" Grid.Row="5" HorizontalAlignment="Left" Width="48"/>
        <TextBox Margin="8,2,8,2" x:Name="TbLayers" LostFocus="TbLayers_LostFocus" TextWrapping="Wrap" Grid.Column="2" Grid.Row="6" AcceptsReturn="True" />
        <TextBox Margin="8,2,8,2" x:Name="TbGroups" LostFocus="TbGroups_LostFocus" Text="" TextWrapping="Wrap" Grid.Column="2" Grid.Row="7" AcceptsReturn="True"/> 
        <TextBox Margin="8,2,8,2" x:Name="TbSrid" LostFocus="TbSrid_LostFocus" TextWrapping="Wrap" Grid.Column="2" Grid.Row="8" HorizontalAlignment="Left" Width="48"/>

        <!-- error icons -->
        <Image Height="16" x:Name="IconErrorServerPaths" HorizontalAlignment="Right" Margin="0,8,4,0" Visibility="Visible" VerticalAlignment="Top" Width="16" Source="../icons/error.png" Stretch="Fill"/>
        <Image Height="16" x:Name="IconErrorScales" HorizontalAlignment="Right" Margin="0,8,4,0" Visibility="Visible" VerticalAlignment="Top" Width="16" Source="../icons/error.png" Stretch="Fill" Grid.Row="1"/>
        <Image Height="16" x:Name="IconErrorMapName" HorizontalAlignment="Right" Margin="0,8,4,0" Visibility="Visible" VerticalAlignment="Top" Width="16" Source="../icons/error.png" Stretch="Fill" Grid.Row="2"/>
        <Image Height="16" x:Name="IconErrorTileWidth" HorizontalAlignment="Right" Margin="0,0,4,0" Visibility="Visible" VerticalAlignment="Center" Width="16" Source="../icons/error.png" Stretch="Fill" Grid.Row="3"/>
        <Image Height="16" x:Name="IconErrorTileHeight" HorizontalAlignment="Right" Margin="0,0,4,0" Visibility="Visible" VerticalAlignment="Center" Width="16" Source="../icons/error.png" Stretch="Fill" Grid.Row="4"/>
        <Image Height="16" x:Name="IconErrorTileDpi" HorizontalAlignment="Right" Margin="0,0,4,0" Visibility="Visible" VerticalAlignment="Center" Width="16" Source="../icons/error.png" Stretch="Fill" Grid.Row="5"/>
        <Image Height="16" x:Name="IconErrorLayers" HorizontalAlignment="Right" Margin="0,8,4,0" Visibility="Visible" VerticalAlignment="Top" Width="16" Source="../icons/error.png" Stretch="Fill" Grid.Row="6"/>
        <Image Height="16" x:Name="IconErrorGroups" HorizontalAlignment="Right" Margin="0,8,4,0" Visibility="Visible" VerticalAlignment="Top" Width="16" Source="../icons/error.png" Stretch="Fill" Grid.Row="7"/>
        <Image Height="16" x:Name="IconErrorSrid" HorizontalAlignment="Right" Margin="0,0,4,0" Visibility="Visible" VerticalAlignment="Center" Width="16" Source="../icons/error.png" Stretch="Fill" Grid.Row="8"/>

    </Grid>
</AzukiMapUI:TileSourceProperties>